import { defineConfig } from 'vitepress'

function sidebarGuide() {
  return [
    {
      text: '组件',
      collapsed: false,
      items: [
        { text: 'start', link: '/start' },
        { text: 'report-table', link: '/report-table' },
        { text: 'dropdown-menu', link: '/dropdown-menu' },
        { text: 'swipe-cell', link: '/swipe-cell' }
      ]
    }
  ]
}

export default defineConfig({
  title: "Qing-UI",
  description: "基于 vue3+ts 书写",
  themeConfig: {
    nav: [
      { text: '主页', link: '/' },
      { text: '组件', link: '/report-table' }
    ],
    sidebar: sidebarGuide(),
    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
